#ifndef COTRONLBUTTON_H
#define COTRONLBUTTON_H
#include "sumHeader.h"

class ControlButton:public QWidget
{
    Q_OBJECT
public:
    ControlButton(QWidget *parent = nullptr);
    ~ControlButton();
    void setFirstLoad(bool flag)
    {
        _firstLoad = flag;
    }
public:
    const static constexpr int ButtonWidth = 80;
    const static constexpr int ButtonHeight = 80;
signals:
    void sendChangeStatueToMusicPlayer(bool);
private slots:
    void changeStatue();
    void acceptResetBegin();
private:
    void loadWidget();

private:
    bool _startPlay = false, _firstLoad = false;//first_load意思是是否已经载入第一个音乐文件
    QPushButton *_playButton;
};

#endif // COTRONLBUTTON_H
